/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ModelLayer;
import java.util.ArrayList;
/**
 *
 * @author Martin
 */
public class Employee extends Person{
    private int accountInfo;
    private String comment;
    private double internalHourlyWage;
    private double externalHourlyWage;
    private long ssn;
    private String skill;
    private long typeNo;
    private long debNo;
    private long cusNo;
    private ArrayList<PartOrder> partOrders;

    public Employee(String fName, String lName, String address, int zipCode, String city, long phoneNumber, String email, int accountInfo, String comment, double internalHourlyWage, double externalHourlyWage, long ssn, String skill, long typeNo, long debNo, long cusNo) {
        super(fName, lName, address, zipCode, city, phoneNumber, email);
        this.accountInfo = accountInfo;
        this.comment = comment;
        this.internalHourlyWage = internalHourlyWage;
        this.externalHourlyWage = externalHourlyWage;
        this.ssn = ssn;
        this.skill = skill;
        this.typeNo = typeNo;
        this.debNo = debNo;
        this.cusNo = cusNo;
        partOrders = new ArrayList<PartOrder>();
    }

    /**
     * @return the accountInfo
     */
    public int getAccountInfo() {
        return accountInfo;
    }

    /**
     * @param accountInfo the accountInfo to set
     */
    public void setAccountInfo(int accountInfo) {
        this.accountInfo = accountInfo;
    }

    /**
     * @return the comment
     */
    public String getComment() {
        return comment;
    }

    /**
     * @param comment the comment to set
     */
    public void setComment(String comment) {
        this.comment = comment;
    }

    /**
     * @return the costPriceSalary
     */
    public double getInternalHourlyWage() {
        return internalHourlyWage;
    }

    /**
     * @param costPriceSalary the costPriceSalary to set
     */
    public void setInternalHourlyWage(double internalHourlyWage) {
        this.internalHourlyWage = internalHourlyWage;
    }

    /**
     * @return the salesPrice
     */
    public double getExternalHourlyWage() {
        return externalHourlyWage;
    }

    /**
     * @param salesPrice the salesPrice to set
     */
    public void setExternalHourlyWage(double externalHourlyWage) {
        this.externalHourlyWage = externalHourlyWage;
    }

    /**
     * @return the ssn
     */
    public long getSsn() {
        return ssn;
    }

    /**
     * @param ssn the ssn to set
     */
    public void setSsn(long ssn) {
        this.ssn = ssn;
    }

    /**
     * @return the skill
     */
    public String getSkill() {
        return skill;
    }

    /**
     * @param skill the skill to set
     */
    public void setSkill(String skill) {
        this.skill = skill;
    }

    /**
     * @return the typeNo
     */
    public long getTypeNo() {
        return typeNo;
    }

    /**
     * @param typeNo the typeNo to set
     */
    public void setTypeNo(long typeNo) {
        this.typeNo = typeNo;
    }

    /**
     * @return the debNo
     */
    public long getDebNo() {
        return debNo;
    }

    /**
     * @param debNo the debNo to set
     */
    public void setDebNo(long debNo) {
        this.debNo = debNo;
    }

    /**
     * @return the cusNo
     */
    public long getCusNo() {
        return cusNo;
    }

    /**
     * @param cusNo the cusNo to set
     */
    public void setCusNo(long cusNo) {
        this.cusNo = cusNo;
    }
    
    /**
     * @return the partOrders
     */
    public PartOrder getPartOrders(int index) {
        return partOrders.get(index);
    }

    /**
     * @param partOrders the partOrders to set
     */
    public void setPartOrders(PartOrder partOrder) {
        partOrders.add(partOrder);
    }
}
